package com.cloud.logger.zchain.zchainclient.http;

import lombok.Data;

/**
 * User: wcy
 * Date: 2017/10/18
 * Time: 10:44
 */
@Data
public class JSONObjectParams<T> {

    private static final String SUCCESS_MESSAGE = "success";
    /**
     * 是否成功
     */
    private Boolean isSuccess = true;
    // 状态码：1成功，其他为失败
    // 成功为success，其他为失败原因
    public String message = SUCCESS_MESSAGE;

    // 数据结果集
    public T content;

    //返回id
    public String result;

    public JSONObjectParams( String result, T content) {
        this.result = result;
        this.content = content;
    }

    public JSONObjectParams(String result) {
    }
}
